package tgc.edu.ljc.bookmanage.entity;

import javax.persistence.Entity;
import javax.persistence.Transient;

import tgc.edu.ljc.bookmanage.security.SysDept;
@Entity
public class TbDept extends SysDept{
	private String manager;
	
	public String getManager() {
		return manager;
	}

	public void setManager(String manager) {
		this.manager = manager;
	}
	
	
	@Transient
	public String getState() {
		return getChildren().isEmpty()?"":"open"; 
	}

	public TbDept() {
		super();
	}
	
	public TbDept(Integer id) {
		super();
		this.id=id;
	}
}
